package jp.co.technotree.common.ctrl;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class FrontCtrlServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
	private ActionController appCtrl = new ActionController();

	public void init(ServletConfig arg0) throws ServletException {
		appCtrl.doInit(arg0);
	}
	
	protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
		try {
			appCtrl.doProcess(arg0,arg1);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException {
		try {
			appCtrl.doProcess(arg0,arg1);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
